﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.AI;

namespace Assets.Script.Human.Enemy.Actions
{
    class Die : EnemyActionBase, IAction
    {

        public Die(EnemyBody body) : base(body)
        {
        }

        public void Interrupt()
        {

        }

        public void OnEnter(ref object[] o)
        {
            state.BeAttacked = true;
            state.Dead = true;
           
            //animator.SetBool("die",true);

            GameObject.Destroy(body.gameObject);

        }
        

        public void OnFixedUpdate()
        {
            
        }

        public void OnUpdate()
        {

        }
    }
}
